package com.aifund.common.dao;

import com.aifund.common.entity.AiExchange;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ExchangeDao extends JpaRepository<AiExchange,Long> {

    /**
     * 根据交易所英文名称获取交易所
     * @param exchangeNameEn
     * @return
     */
    AiExchange getByExchangeNameEn(String exchangeNameEn);

    /**
     * 根据交易所ID获取交易所实例
     * @param id
     * @return
     */
    AiExchange getById(Long id);


}
